package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sy
 * @since 2023-12-19
 */
@Getter
@Setter
@TableName("dragon_scheduling_son_son")
public class SchedulingSonSon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 排产表id
     */
    private Integer schedulingId;

    /**
     * 排产子表id
     */
    private Integer schedulingSonId;

    /**
     * 生产单id
     */
    private Integer produceId;

    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 拆解键名称
     */
    private String name;

    /**
     * 设备id
     */
    private Integer equipmentId;

    /**
     * 排产数量
     */
    private Integer schedulingNum;

    /**
     * 生产状态：1 生产中 2生产完成
     */
    private Integer type;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 完成时间
     */
    private Double finishHour;


}
